<?php echo $this->element('header');?>

<div id="container_bg">
	<div id="container">
	
		<div id="left_column">
		
			<h2 class="inf_1">Informator dla<br /> mieszkańców</h2>
			<?php if(isset($leftMenu1) && is_array($leftMenu1) && !empty($leftMenu1)) echo $this->Tree->generate($leftMenu1, array('plugin'=>'Menu','model' => 'Menus','element'=>'Menu.leftMenu','class'=>'sf-menu','id'=>'more_elements'));?>
			
			<h2 class="inf_2">Informator dla turystów</h2>
			<?php if(isset($leftMenu2) && is_array($leftMenu2) && !empty($leftMenu2)) echo $this->Tree->generate($leftMenu2, array('plugin'=>'Menu','model' => 'Menus','element'=>'Menu.leftMenu','class'=>'sf-menu','id'=>'more_elements'));?>
			
			<h2 class="gospodarka">Gospodarka</h2>
			<?php if(isset($leftMenu3) && is_array($leftMenu3) && !empty($leftMenu3)) echo $this->Tree->generate($leftMenu3, array('plugin'=>'Menu','model' => 'Menus','element'=>'Menu.leftMenu','class'=>'sf-menu','id'=>'more_elements'));?>
		
		</div>
		
		<div id="center_column">
		
			<h2 class="title">Strona zablokowana</h2>
			<center><?php echo $this->Html->image('security_lock.png',array('style'=>'vertical-align: middle; padding: 30px; float: none;'));?></center>
			<?php if (Configure::read('debug') > 0 ):?>
			
			<p class="error">
			<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
				<?php echo h($error->getMessage()); ?>
			</p>
			<div class="errors index">
			<h2><?php echo __d('cake_dev', 'Database Error'); ?></h2>
			
			<?php if (!empty($error->queryString)) : ?>
			<p class="notice">
			<strong><?php echo __d('cake_dev', 'SQL Query'); ?>: </strong>
			<?php echo  $error->queryString; ?>
			</p>
			<?php endif; ?>
			<?php if (!empty($error->params)) : ?>
			<strong><?php echo __d('cake_dev', 'SQL Query Params'); ?>: </strong>
			<?php echo  Debugger::dump($error->params); ?>
			<?php endif; ?>
			
			<?php echo $this->element('exception_stack_trace'); ?>
			</div>
			
			<?php 
				echo $this->element('exception_stack_trace');
			endif;
			?>
		
		</div>
		
		<div id="right_column">
		
			<?php echo $this->element('right_menu');?>
			<?php if(isset($rightMenu) && is_array($rightMenu) && !empty($rightMenu)) echo $this->Tree->generate($rightMenu, array('plugin'=>'Menu','model' => 'Menus','element'=>'Menu.leftMenu'));?>
		
		</div>
	
	</div>
</div>

<?php echo $this->element('footer');?>